package example.fileTest.example2;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class UseBufferedReaderFile {

	public static void main(String[] args) {
		try{
			BufferedReader in = new BufferedReader(new FileReader("C:\\java.txt"));
			String str;
			while((str = in.readLine()) != null){
				System.out.println(str);
			}
			System.out.println(str);
			in.close();
		}catch(IOException e){
		}
	}

}
